/***************************************************************
Made by: Cultured::Labs

Copyright (c) 2010 Cultured::Labs
****************************************************************/
#include <iostream>
#include "printStickman.h"
using namespace std;

void printStickman(int index) {
  switch (index) {
  case 0:
    cout << "  _____  " << endl
        <<  "  |   |  " << endl
        <<  "  |   o  " << endl
        <<  "  |  /I\\" << endl
        <<  "  |  / \\" << endl
        <<  "__|__    " << endl;
    break;
  case 1:
    cout << "  _____  " << endl
        <<  "  |   |  " << endl
        <<  "  |   o  " << endl
        <<  "  |  /I\\" << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 2:
    cout << "  _____  " << endl
        <<  "  |   |  " << endl
        <<  "  |   o  " << endl
        <<  "  |   I  " << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 3:
    cout << "  _____  " << endl
        <<  "  |   |  " << endl
        <<  "  |   o  " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 4:
    cout << "  _____  " << endl
        <<  "  |   |  " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 5:
    cout << "  _____  " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 6:
    cout << "         " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "  |      " << endl
        <<  "__|__    " << endl;
    break;
  case 7:
    cout << "         " << endl
        <<  "         " << endl
        <<  "         " << endl
        <<  "         " << endl
        <<  "         " << endl
        <<  "____     " << endl;
    break;
  case 8:
    cout << endl;
    break;
  default:
    cout << "#Error# - Wrong function input";
  }
}
